package com.wish.g04.financing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wish.g04.base.entity.CwPaymentPlan;
import com.wish.g04.base.entity.SfContract;
import com.wish.g04.financing.dto.PaymentPlanDTO;
import com.wish.g04.financing.vo.PaymentDayVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 付款服务类
 * @author tyd
 * @since 2022-06-1
 */

public interface PaymentPlanService{

    /**
     * 收房合同的查询
     * @param sfContract
     * @return
     */
    List<SfContract> getHouseContractList(SfContract sfContract);

    /**
     * 根据id收房合同
     * @param id
     * @return
     */
    SfContract getHouseContractById(Long id);

    /**
     * 获取可选择的账期
     * @param id
     * @return
     */
    List<PaymentDayVO> getPaymentDayVOList(Long id);

    /**
     * 添加付款计划
     * @param paymentPlanDTO
     * @return
     */
    Boolean savePaymentPlan(PaymentPlanDTO paymentPlanDTO);
}
